package com.newbee.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DemoServiceF {

    @Autowired
    private DemoServiceG demoServiceG;

    public void testErrorF() {
        try {
            demoServiceG.testErrorG();
        } catch (Exception e) {
            throw new IllegalArgumentException("测试异常2-被传播并包装");
        }
    }
}
